<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/common/taglib.jsp" %>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<%@include file="/WEB-INF/common/static.jsp" %>
	<style>
		.login_btn{
			background-color: #435770;
		}
		.login_btn:hover{
			background-color: #ccf;
		}
	</style>
	<script type="text/javascript">
		$(function(){
			if($("#msg").val()){
				alert($("#msg").val());
			}
		});
    </script>
</head>
<body>
    <div class="container" style="padding:200px 0 100px 0;">
        <div class="row" > 
           <div class="col-md-4  col-md-offset-1">
           </div>
            <div class="col-md-4  col-md-offset-2">
                <div class="panel panel-default">
                    <div class="panel-heading" style="">
                        <h3 class="panel-title"><label style="color:black">用户登入</label></h3>
                    </div>
                    <div class="panel-body" style="">
                        <form name="loginform" action="${ctx }/login.do" method="POST" accept-charset="UTF-8" role="form">
                            <fieldset>
                                <div class="form-group">
                                    <input class="form-control" placeholder="用户名" name="username" type="text">
                                </div>
                                <div class="form-group">
                                    <input class="form-control" placeholder="密码" name="password" type="password">
                                </div>
                                <input class="btn btn-lg btn-danger btn-block login_btn" type="submit" value="登入">
                            	<input type="hidden" id="msg" value="${msg }"/>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</body>
</html>